<?php

namespace App\Models;

use Eloquent as Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * Class Manager
 * @package App\Models
 * @version June 25, 2018, 9:28 am CST
 *
 * @property string true_name
 * @property string name
 * @property string password
 * @property integer flag
 * @property string park_code
 * @property string img
 */
class Manager extends Model
{
    public $table = 'ipk_parkeeper';

    public $connection="iop";

    public $timestamps = false;

    public $fillable = [
        'realname',
        'username',
        'password',
        'u_status',
        'park_code',
        'avatar_url',
        'cid',
        'create_by',
        'update_by',
    ];

    /**
     * The attributes that should be casted to native types.
     *
     * @var array
     */
    protected $casts = [
        'realname' => 'string',
        'username' => 'string',
    ];

    /**
     * Validation rules
     *
     * @var array
     */
    public static $rules = [
        'realname' => 'required',
        'username' => 'required',
        'park_code' => 'required'
    ];

    
}
